# import task_sys_status
from zz import zz_redis, zz_code, zz_str, zz_return

# from urllib.parse import urlparse
#
# task_sys_status.main()
import uuid

redis = zz_redis.of()
s = redis.set_if_exists('task_sys_status', zz_code.date_tostring(), 60 * 60)
print(s)
# print(redis.get_client().expire('task_sys_status', 200))

# s = redis.get_client().setnx('test', '1')
# print(s)
# redis.get_client().expire("test", 20)
# parsed_url = urlparse("https://app.ws.fjciecc.com/app/sys_status")
# print(parsed_url)

# print(zz_str.sub("我是你的test", 100))

# print(uuid.uuid1())
#
# print(zz_code.env("test"))
#
# r = zz_return.of(0, "ok")
# r.set_data("arr", ["123", "abc"])
# print(r.to_json())
